import type { UaGuessInstance } from "@/types/component"
import { ref } from "vue"

/**
 * 自定义hook-下拉刷新
 * @returns 猜你喜欢组件实例 下拉刷新执行方法
 */
export const useGuessRefresh = () => {
    const guessRef = ref<UaGuessInstance>()
    /**
     * 触底刷新
     */
    const onScrollToLower = () => {
        guessRef.value?.getMore()
    }
    return {
        guessRef,onScrollToLower
    }
}